package com.maiji.cloud.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.shopingmall.CapitalIOEntity;


@Mapper
public interface CapitalIOMapper extends BaseMapper<CapitalIOEntity>{
	/**
	 * 根据id获取
	 * @param userId
	 * @param type 
	 * @param start从哪里提现
	 * @return
	 */
	List<CapitalIOEntity> selectListByUserId(@Param("userId")String userId,@Param("type")Integer type,@Param("start")String start,
			@Param("startTime")String startTime,@Param("endTime")String endTime,
			@Param("startPage")Integer startPage,@Param("limit")Integer limit);
	
	/**
	 * 根据id获取提现总额
	 * @param userId
	 * @param type 
	 * @param start从哪里提现
	 * @return
	 */
	Double selectWithdrawSum(@Param("userId")String userId,@Param("type")Integer type,@Param("start")String start);
	
	
	/**
	 * 充值/提现 金额
	 * @param userId
	 * @param type
	 * @return
	 */
	Double selectSumByUserId(@Param("userId")String userId,@Param("type")Integer type);

}
